import {createRouter, createWebHistory} from 'vue-router'

//引入组件
import PokemonPage from '../components/PokemonPage'
import PokemonSearchResult from '../components/PokemonSearchResult'
import WhoAmI from  '../components/WhoAmI'

//路由器
export default createRouter({
    history: createWebHistory(),
    routes:[
        {
            path: '/search',
            component: PokemonSearchResult,
        },
        {
            path: '/pokemonInfo',
            component: PokemonPage,
        },
        {
            path: '/whoAmI',
            component: WhoAmI,
        }
    ]
})